﻿using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using ProdService;
using UI.Filters;
using ViewModels.Career;

namespace UI.ApiControllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class CareerController : BaseController
    {
        private CareerService careerService;
        public CareerController(CareerService careerService)
        {
            this.careerService = careerService;
        }

        [HttpPost]
        [Route(nameof(NeedHelp))]
        //[TypeFilter(typeof(NeedLogon))]
        public int NeedHelp([FromForm] NeedHelpModel model)
        {
            return careerService.NeedHelp(model);
        }
    }
}
